import { request } from "@/api/request.js";


// 登录
export function login(data) {
    return request({
        url: "/system/login",
        method: "POST",
        data: data
    });
}

// 注册
export function register(data) {
    return request({
        url: "/system/register",
        method: "POST",
        data: data
    });
}

// 发送邮箱验证码
export function sendEmailCode(data) {
    return request({
        url: "/system/sendEmailCode",
        method: "POST",
        data: data
    });
}

// 退出登录
export function logout() {
    return request({
        url: "/system/logOut",
        method: "POST"
    });
}